From f723e06ad4a905a56d094e64240cfe38f8648751 Mon Sep 17 00:00:00 2001 From: "Maintainers of libpng1.6 packages" Date: Fri, 17 Apr 2026 14:34:10 +0200 Subject: [PATCH] this patch is needed to strip arch-dep bits and get a multiarch -dev package. =================================================================== Gbp-Pq: Name libpng-config.patch --- libpng-config.in | 9 ++++++--- scripts/libpng-config-body.in | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libpng-config.in b/libpng-config.in index 69bf8e3..8dc77b5 100644 --- a/libpng-config.in +++ b/libpng-config.in @@ -14,12 +14,13 @@ version="@PNGLIB_VERSION@" prefix="@prefix@" exec_prefix="@exec_prefix@" -libdir="@libdir@" +# we disable that to make the -dev package Multi-Arch: same +libdir= includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@" libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@" all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@" I_opts="-I${includedir}" -L_opts="-L${libdir}" +L_opts= R_opts="" cppflags="" ccopts="" @@ -33,7 +34,7 @@ Usage: $0 [OPTION] ... Known values for OPTION are: --prefix print libpng prefix - --libdir print path to directory containing library + --libdir print path to directory containing library (disabled in Debian/Ubuntu) --libs print library linking information --ccopts print compiler options --cppflags print pre-processor flags @@ -84,6 +85,8 @@ while test $# -gt 0; do ;; --libdir) + echo >&1 "$(basename $0): --libdir option is disabled in Debian/Ubuntu" + exit 1 echo ${libdir} ;; diff --git a/scripts/libpng-config-body.in b/scripts/libpng-config-body.in index 181984b..98af270 100644 --- a/scripts/libpng-config-body.in +++ b/scripts/libpng-config-body.in @@ -6,7 +6,7 @@ Usage: libpng-config [OPTION] ... Known values for OPTION are: --prefix print libpng prefix - --libdir print path to directory containing library + --libdir print path to directory containing library (disabled in Debian/Ubuntu) --libs print library linking information --ccopts print compiler options --cppflags print pre-processor flags @@ -57,6 +57,8 @@ while test $# -gt 0; do ;; --libdir) + echo >&1 "$(basename $0): --libdir option is disabled in Debian/Ubuntu" + exit 1 echo ${libdir} ;; -- 2.30.2